<!--
 * @FilePath     : /layui/demo/1563.html
 * @Description  : 不同（预定义）尺寸下拉选
 * @Date         : 2025-02-24 14:39
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-02-24 14:39
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="" />
  </head>
  <body>
    <div id="demo1" class="xm-select-size"></div>
    <div id="demo2" class="xm-select-size"></div>
    <div id="demo3" class="xm-select-size"></div>
    <div id="demo4" class="xm-select-size"></div>

    <script src="/xm-select/dist/xm-select.js"></script>
    <script>
      var demo1 = xmSelect.render({
        el: '#demo1',
        size: 'large',
        data: [
          { name: 'large', value: 1, selected: true },
          { name: '李四1', value: 2 },
          { name: '王五1', value: 3, disabled: true },
          { name: '苹果2', value: 4 },
        ],
      })

      var demo2 = xmSelect.render({
        el: '#demo2',
        size: 'medium',
        data: [
          { name: 'medium', value: 1, selected: true },
          { name: '李四1', value: 2 },
          { name: '默认尺寸', value: 3, selected: true, disabled: true },
          { name: '苹果2', value: 4 },
        ],
      })

      var demo3 = xmSelect.render({
        el: '#demo3',
        size: 'small',
        data: [
          { name: 'small', value: 1, selected: true },
          { name: '李四1', value: 2 },
          { name: '王五1', value: 3, disabled: true },
          { name: '苹果2', value: 4 },
        ],
      })

      var demo4 = xmSelect.render({
        el: '#demo4',
        size: 'mini',
        data: [
          { name: 'mini', value: 1, selected: true },
          { name: '李四1', value: 2 },
          { name: '王五1', value: 3, disabled: true },
          { name: '苹果2', value: 4 },
        ],
      })
    </script>
  </body>
</html>
